<?php
header ("Content-type: image/png");
include_once('user.inc.php');
$captcha=randomString(7);
$image = imagecreatefrompng("../img/captchagrid.png");
$noir = imagecolorallocate($image, 0, 0, 0);
imagestring($image, 15, 35, 15, $captcha, $noir);


imagepng($image);

?>